package com.chinasofti.controlconsumer;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class, DruidDataSourceAutoConfigure.class })
@EnableEurekaClient //开启Eureka客户端
@EnableFeignClients //开启Feign客户端
@EnableCircuitBreaker //开启Hystrix断路器
public class ControlConsumerApplication {

    public static void main(String[] args) {
        SpringApplication.run(ControlConsumerApplication.class, args);
    }

}
